/**
Copyright [2009] [Julian Gamble] 

Licensed under the Apache License, Version 2.0 (the "License"); 
you may not use this file except in compliance with the License. 
You may obtain a copy of the License at 

	http://www.apache.org/licenses/LICENSE-2.0 
	
Unless required by applicable law or agreed to in writing, software 
distributed under the License is distributed on an "AS IS" BASIS, 
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
See the License for the specific language governing permissions and 
limitations under the License. 
 **/
package cruiseprojectlist.domain;

public class ProjectPreference {

	private double coverageMinimum;

	private double coverageTarget;

	private double complexityMinimum;

	private double complexityTarget;
	
	private String coberturaFilePath;
	
	private boolean isVisible;

	public boolean isVisible() {
		return isVisible;
	}

	public void setVisible(boolean isVisible) {
		this.isVisible = isVisible;
	}

	public String getCoberturaFilePath() {
		return coberturaFilePath;
	}

	public void setCoberturaFilePath(String coberturaFilePath) {
		this.coberturaFilePath = coberturaFilePath;
	}

	public double getCoverageMinimum() {
		return coverageMinimum;
	}

	public void setCoverageMinimum(double coverageMinimum) {
		this.coverageMinimum = coverageMinimum;
	}

	public double getCoverageTarget() {
		return coverageTarget;
	}

	public void setCoverageTarget(double coverageTarget) {
		this.coverageTarget = coverageTarget;
	}

	public double getComplexityMinimum() {
		return complexityMinimum;
	}

	public void setComplexityMinimum(double complexityMinimum) {
		this.complexityMinimum = complexityMinimum;
	}

	public double getComplexityTarget() {
		return complexityTarget;
	}

	public void setComplexityTarget(double complexityTarget) {
		this.complexityTarget = complexityTarget;
	}

	public void setVisible(String[] isVisible2) {
		// Get first value
		String firstVal = isVisible2[0];
		if ("on".equalsIgnoreCase(firstVal))
			setVisible(true);
		else
			setVisible(false);
	}

	/*public ProjectPreference(double coverageMinimum, double coverageTarget,
			double complexityMinimum, double complexityTarget) {
		super();
		this.coverageMinimum = coverageMinimum;
		this.coverageTarget = coverageTarget;
		this.complexityMinimum = complexityMinimum;
		this.complexityTarget = complexityTarget;
	}*/

	

}